﻿using Autofac;
using AutoFacLearn.Demo;
using AutoFacLearn.Demo.Interface;
using AutoFacLearn.注册Demo;
using System;
using Autofac.Core;
using System.Collections.Generic;
using AutoFacLearn.注册Demo.解析时传参;
using AutoFacLearn.注册Demo.泛型相关;

namespace AutoFacLearn
{
    class Program
    {
        static void Main(string[] args)
        {
            //List<Parameter> list = new List<Parameter>();
            //list.Add(new NamedParameter("", ""));



            //new 扫描程序集注册带参数().Demo(new NamedParameter("i", 111));
            //new 扫描程序集注册带参数().Demo(new NamedParameter("s", "111"));
            //new 扫描程序集注册带参数().Demo(new NamedParameter("s", "111"), new NamedParameter("j", "111111"));
            //StudentEntity st = new StudentEntity()
            //{
            //    Name = "乔安生"
            //};
            //new Demo解析时传入对象().Demo(new NamedParameter("studentEntity", st));

            new 泛型父类And普通接口().Demo();

            Console.WriteLine("Hello World!");
            Console.ReadLine();
        }





    }
}
